<template>
  <ElEmpty description="出错了!">
    <ElButton type="primary" @click="router.go(-1)">返回上一页</ElButton>
  </ElEmpty>
</template>
<script setup lang="ts">
import { useRouter } from "vue-router";
import { ElEmpty, ElButton } from "element-plus";
const router = useRouter();
</script>
<style scoped lang="scss">
.el-empty {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
</style>
